﻿<U:PRJTMP x:Class="WPFExcelReport.GTTFFAPS"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls" 
                    xmlns:AV="clr-namespace:WPFExcelReport;assembly=TICC_MKRF" 
                    xmlns:SRU="clr-namespace:WPFExcelReport;assembly=TICC_SRULES" 
                     xmlns:SSM="clr-namespace:WPFExcelReport;assembly=TICC_STDMACHINE"
                    xmlns:RSP="clr-namespace:WPFExcelReport;assembly=TICC_SPINSPEED"
                    xmlns:WF="clr-namespace:WPFExcelReport;assembly=TICC_WFEVENTS"
                    xmlns:AM="clr-namespace:WPFExcelReport;assembly=TAMSTAMM"
                    xmlns:VK="clr-namespace:WPFExcelReport;assembly=TVKPOS"
                     xmlns:U="clr-namespace:WPFExcelReport;assembly=ITXUI"
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"                     
                    FontSize="12"
                    Name="TV"
                    Loaded="Window_Loaded"
>
    <U:PRJTMP.Resources>
        <CollectionViewSource  x:Key="vwMaster"/>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1440  x:Key="day"/>
        <ucd:Divideby480  x:Key="shift"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:TextTrimmingConverter x:Key="Trim"/>
        <ucd:PNumConverter x:Key="pnum"/>
    </U:PRJTMP.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="2*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.Column="0" >
            <WrapPanel Margin="10,10,10,10">
                <Button Margin="20,0,0,0" Content="甘特图" Click="ShowGanttCommand"/>
                <WF:TBTNEXE CMD="STAK02" DLL="TICC_STDMACHINE" STWNW="MainWindow"
                            INFO="生产线负载"
                            IsInfo="True"
                            ART="{Binding KSTKRS,ElementName=cAV33}"
                            VAR="{Binding KST,ElementName=cAV33}"
                            FARBE="{Binding AGANG,ElementName=cAV33}"
                            FINISH="{Binding AMTYP,ElementName=cAV33}"
                            />
                <WF:TBTNEXE CMD="SSRULES" DLL="TICC_SRULES" STWNW="MainWindow"
                            INFO="设备约束"
                            IsInfo="True"
                            ART="{Binding KSTKRS,ElementName=cAV33}"
                            VAR="{Binding KST,ElementName=cAV33}"
                            FARBE="{Binding AGANG,ElementName=cAV33}"
                            FINISH="{Binding AMTYP,ElementName=cAV33}"
                            />
                <Button Margin="20,0,0,0" Content="速度设定" Click="RSPCommand"/> 
                <Button Margin="20,0,0,0" Content="生产线设定" Click="SSMCommand"/>
                <Button  Margin="20,0,0,0"  Content="设备管理" IsEnabled="False" Click="AM21Command" />
                <Button Margin="20,0,0,0" Content="同类订单"  IsEnabled="False"   Click="GMF02Command"/>
                <Button  Margin="20,0,0,0" Content="生产单" IsEnabled="False"    Click="AM21Command"/>
                <WF:TBTNEXE CMD="SPRMF03" DLL="TICC_MKRF" STWNW="MainWindow"
                            INFO="打印"
                            IsInfo="True"
                            ART="{Binding KSTKRS,ElementName=cAV33}"
                            VAR="{Binding KST,ElementName=cAV33}"
                            FARBE="{Binding AGANG,ElementName=cAV33}"
                            FINISH="{Binding AMTYP,ElementName=cAV33}"
                            DESS="UBTDXDOC"
                            /> 
            </WrapPanel>
        </StackPanel>
        <Grid Name="zAV37" Grid.Row="1" Grid.Column="0" >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <AV:TFFSAV37   Grid.Column="0"  Height="Auto"  Name="cAV37"
                         KSTKRS="{Binding KSTKRS,ElementName=cAV33}"  
                         KST="{Binding KST, ElementName=cAV33}"
                         AMTYP="{Binding AMTYP, ElementName=cAV33}"
                         AGANG="{Binding AGANG ,ElementName=cAV33}"
                        />
        </Grid>
        <Grid Name="zAV33" Grid.Row="2"  Grid.Column="0"  >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="1*"></ColumnDefinition>
                <ColumnDefinition Width="Auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <AV:TFFSAV33   Grid.Column="0"  Name="cAV33"  
                         JOBID="{Binding Path=JOBID,ElementName=cAV37, Mode=TwoWay}"/>
        </Grid>
    </Grid>
</U:PRJTMP>

    